package com.water_work_form.mapper;

import com.water_work_form.entity.BasicDevice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.water_work_form.entity.BasicRestriction;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 基础表——设备计量 Mapper 接口
 * </p>
 *
 * @author xuke
 * @since 2023-08-01
 */
@Mapper
public interface BasicDeviceMapper extends BaseMapper<BasicDevice> {

    @Select("SELECT * FROM basic_device WHERE type = #{type}")
    BasicDevice getOneByName(String type);

    @Select("SELECT * FROM basic_device WHERE type = #{type}")
    List<BasicDevice> listByName(String type);

}
